<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title></title>
	<style type="text/css">
		*{
			margin: 0;
			padding: 0;
		}
		#wrap {
			margin: 0 auto;
			width: 100px;
			height: 100px;
			padding: 100px;
			border: 1px solid #000;
			perspective: 100px;
		}
		#inner {
			width: 100px;
			height: 100px;
			background: red;
			transition: 1s;
		}
		#wrap:hover #inner {
			/*
			   rotate(angle)
			   rotateX(angle)
			   rotateY(angle)
			   rotateZ(angle)
			   rotate3d(x,y,z,angle)
			*/
			transform: rotate3d(1,1,1,360deg);
		}
	</style>
</head>
<body>
<div id="wrap">
	<div id="inner">
		inner
	</div>
</div>
</body>
</html>